// 电子签章配置-查询条件
export const formOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'select',
            prop: 'businessType',
            value: '',
            label: '业务类型',
            colSpan: 6,
            clearable: true,
            dicType: 'IS_NEWBUSINESS',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjType',
            value: '',
            label: '项目类型',
            colSpan: 6,
            clearable: true,
            dicType: 'PROJ_TYPE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'buildModes',
            value: '',
            label: '建设方式',
            colSpan: 6,
            clearable: true,
            dicType: 'BUILD_MODES',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjStage',
            value: '',
            label: '项目阶段',
            colSpan: 6,
            clearable: true,
            dicType: 'PRO_STAGE',
            dicProp: {
                label: 'value',
                value: 'key'
            }
        },
        {
            type: 'select',
            prop: 'prjNodeId',
            value: '',
            label: '项目节点',
            colSpan: 6,
            clearable: true,
            dicType: 'PRO_NODE',
            dicProp: {
                label: 'value',
                value: 'key'
            }
        },
        {
            type: 'input',
            prop: 'docType',
            colSpan: 6,
            value: '',
            clearable: true,
            label: '文件类型'
        }
    ]
}

export const colOption = [
    { label: '项目类型', width: '', prop: 'prjType', dicType: 'PROJ_TYPE', dicProp: { label: 'dictName', value: 'dictId' }},
    { label: '建设方式', width: '', prop: 'buildModes', dicType: 'BUILD_MODES', dicProp: { label: 'dictName', value: 'dictId' }},
    // { label: '项目阶段', width: '', prop: 'prjStage' },
    { label: '项目阶段', width: '', prop: 'prjStage', dicType: 'PRO_STAGE', dicProp: { label: 'value', value: 'key' }},
    { label: '项目节点', width: '', prop: 'prjNodeId' },
    // { label: '项目节点', width: '', prop: 'prjNodeId', dicType: 'PRO_NODE', dicProp: { label: 'value', value: 'key' }},
    { label: '文件类型', width: '', prop: 'docType', dicType: 'DOC_TYPE', dicProp: { label: 'DOCNAME', value: 'DOCTYPE' }},
    { label: '更新时间', width: '', prop: 'updateTime' },
    { label: '操作人', width: '', prop: 'updateUser' }
]

export const btnOption = [
    { label: '新增', fun: 'add', type: '' },
    { label: '编辑', fun: 'edit', type: '' },
    { label: '删除', fun: 'delete', type: '' },
    { label: '规则配置说明', fun: 'conDesc', type: '' }
]

// 弹框表单配置
export const addFormOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    disabled: false,
    itemData: [
        {
            type: 'select',
            prop: 'businessType',
            value: '',
            label: '业务专业',
            size: 'mini',
            multiple: false,
            colSpan: 12,
            clearable: true,
            width: '',
            dicType: 'IS_NEWBUSINESS',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            },
            rule: [
                { required: true, message: '请选择活动区域', trigger: 'change' }
            ]
        },
        {
            type: 'select',
            prop: 'prjType',
            value: '',
            size: 'mini',
            width: '',
            multiple: false,
            colSpan: 12,
            clearable: true,
            label: '项目类型',
            dicType: 'PROJ_TYPE',
            rule: [
                { required: true, message: '请选择活动区域', trigger: 'change' }
            ],
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'buildModes',
            value: '',
            size: 'mini',
            colSpan: 12,
            multiple: false,
            width: '',
            clearable: true,
            label: '建设方式',
            dicType: 'BUILD_MODES',
            rule: [
                { required: true, message: '请选择活动区域', trigger: 'change' }
            ],
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjStage',
            value: '',
            size: 'mini',
            colSpan: 12,
            multiple: false,
            width: '',
            clearable: true,
            label: '项目阶段',
            dicType: 'PRO_STAGE',
            rule: [
                { required: true, message: '请选择活动区域', trigger: 'change' }
            ],
            dicProp: {
                label: 'value',
                value: 'key'
            }
        },
        {
            type: 'select',
            prop: 'prjNodeId',
            value: '',
            size: 'mini',
            multiple: false,
            width: '',
            colSpan: 12,
            clearable: true,
            label: '项目节点',
            dicType: 'PRO_NODE',
            rule: [
                { required: true, message: '请选择活动区域', trigger: 'change' }
            ],
            dicProp: {
                label: 'value',
                value: 'key'
            }
        },
        {
            type: 'slot',
            prop: 'docType',
            size: 'mini',
            colSpan: 12,
            width: '',
            multiple: true,
            collapseTags: true,
            multipleLimit: 0,
            clearable: true,
            dicType: 'DOC_TYPE',
            rule: [
                { type: 'array', required: true, message: '请至少选择一个文件类型', trigger: 'change' }
            ],
            value: [],
            label: '文件类型'
        }
    ]
}
